]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspaceThumbnail/thumbnailsBox: Set pivot point
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Wed, 27 Jan 2021 15:37:48 +0000 (12:37 -0300)
committerMarge Bot <marge-bot@gnome.org>
Fri, 29 Jan 2021 15:01:03 +0000 (15:01 +0000)
Set the pivot point at the center of the ThumbnailsBox so that scaling
in and out looks better.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1593>

js/ui/workspaceThumbnail.js

index d7344033c1dcca9d1d995e04205ff6b5577e0076..839ab89e439aa51fb82157837ad044b6af352337 100644 (file)
@@ -1,7 +1,7 @@
 // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
 /* exported WorkspaceThumbnail, ThumbnailsBox */
 
-const { Clutter, Gio, GLib, GObject, Meta, Shell, St } = imports.gi;
+const { Clutter, Gio, GLib, GObject, Graphene, Meta, Shell, St } = imports.gi;
 
 const DND = imports.ui.dnd;
 const Main = imports.ui.main;
@@ -613,6 +613,7 @@ var ThumbnailsBox = GObject.registerClass({
             style_class: 'workspace-thumbnails',
             reactive: true,
             x_align: Clutter.ActorAlign.CENTER,
+            pivot_point: new Graphene.Point({ x: 0.5, y: 0.5 }),
         });
 
         this._delegate = this;